package com.py;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableAutoConfiguration(exclude={  
	      JpaRepositoriesAutoConfiguration.class,//禁止springboot自动加载持久化bean
	      HibernateJpaAutoConfiguration.class,//禁止实例化mongodb
	      DataSourceAutoConfiguration.class
	      })  
@ImportResource({"classpath:/thrift-client/*.xml"}) 
public class ConsumerApplication {
	public static void main(String[] args) {
		//System.setProperty("zookeeper.ips", "192.168.8.30:2181");

		ApplicationContext application = SpringApplication.run(ConsumerApplication.class, args);
		
	}
}
